package com.wimcorp.magic.dataloader.dto;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;




public class ColorDTO  implements Serializable {

	private static final long serialVersionUID = 1L;

	private Long id;

	private String color;

	public ColorDTO() {

	}

	public ColorDTO(String color) {
		this.color = color;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public boolean equals(Object o) {
		if (!(o instanceof ColorDTO)) {
			return false;
		}
		return ((ColorDTO) o).getColor().equals(color);
	}

	@Override
	public int hashCode() {
		return color.hashCode();
	}

}
